package com.liuda066.forumssm.services;

import com.liuda066.forumssm.model.Board;

import java.util.List;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2023/9/4 20:25
 */
public interface IBoardService {
    void create(Board board);
    Board selectById(Long id);
    List<Board> selectByNum(Integer num);
    List<Board> selectAllNormal();

    /**
     * 贴子数加1
     * @param id
     * @return
     */
    void addOneArticleCountById(Long id);
    /**
     * 贴子数减1
     * @param id
     * @return
     */
    void subOneArticleCountById(Long id);
}
